﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BrokerBase.Lib.Policy;

namespace broker.duty.YG
{
    /// <summary>
    /// 阳光_豁免保险费重大疾病保险_附_A款
    /// </summary>
    class Class14
    {
        public void Calc1(IPolicyPeriodActing ppa, IDutyActing da)
        {
            if (ppa.Period > 0 && ppa.PolicyActing.PeriodActings[ppa.Period - 1].SchemePeriodActing.InsurantStates.Contains("重大疾病"))
            {
                foreach (IPolicyPeriodActing p2 in ppa.SchemePeriodActing.PolicyPeriodActings)
                {
                    if (! p2.PolicyActing.Policy.Product.CanOverPeriod)
                    {
                        p2.Fee = 0;
                    }
                }
            }
        }
    }
}
